export default {
  namespaced: true,
  state: {
    id: 0,
    name: '',
    // 头像
    avatar: '',
    userInfo: null
  },
  mutations: {
    updateId(state, id) {
      state.id = id;
    },
    updateName(state, name) {
      state.name = name;
    },
    updateAvatar(state, val) {
      state.avatar = val;
    },
    updateUserInfo(state, val) {
      state.userInfo = val;
    }
  }
};
